<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\validate;

/**
 * 报修单验证器
 */
class Repair extends AdminBase
{
    
    // 验证规则
    protected $rule =   [
        
        'number'              => 'require|number',
        'describe'               => 'require',
        'place'               => 'require',
    ];

    // 验证提示
    protected $message  =   [
        
        'number.require'              => '报修单车不能为空',
        'number.number'               => '保修单车号码必须为数字',
        'describe.require'               => '报修描述不能为空',
        'place.require'              => '报修地点不能为空',
    ];

    // 应用场景
    protected $scene = [
        
        'edit' =>  ['number','describe','place'],
    ];
    
}
